﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp16
{
    class IdSort : IComparer<Student>
    {
        public int Compare(Student x, Student y)
        {
            if (x.id>y.id)
            {
                return 1;
            }
            else
            {
                return -1;
            }

        }
    }
}
